package com.dowsure.apisaas.model;

import com.dowsure.apisaas.annotation.RequestParamValidated;
import com.dowsure.apisaas.util.DowsureDateUtils;
import lombok.Data;

/**
 * @program: apisaas-sdk
 * @description:
 * @author: Dowsure
 * @create: 2022-02-15 18:03
 **/
@Data
public class CreditCloseRequestParams {

    /**
     * Dowsure 卖家申请单编号
     */
    @RequestParamValidated(required = true, msg = "Dowsure 卖家申请单编号", maxLen = 32)
    private String applicationCode;

    /**
     * 用户侧授信编码
     */
    @RequestParamValidated(required = true, msg = "用户侧授信编码", maxLen = 32)
    private String creditCode;

    /**
     * 用户侧授信合同编号
     */
    @RequestParamValidated(msg = "用户侧授信合同编号", maxLen = 32)
    private String creditContractNo;

    /**
     * 授信关闭时间
     */
    @RequestParamValidated(msg = "授信关闭时间", format = DowsureDateUtils.YYYYMMDDHHMMSS)
    private String datetime;
}
